package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.atguigu.tingshu.vo.category.CategoryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseCategoryViewMapper extends BaseMapper<BaseCategoryView> {

    BaseCategoryView getAlbumCategory(@Param("albumId") Long albumId);

    List<CategoryVo> getBaseCategoryListByCategory1Id(@Param("category1Id")Long category1Id);
}
